package com.fesine.crm.service.impl;

import com.fesine.crm.po.ErrorListPo;
import com.fesine.crm.service.ErrorListService;
import com.fesine.crm.util.SystemUtils;
import com.fesine.service.impl.BaseServiceImpl;
import org.springframework.stereotype.Service;

/**
 * @description: 类描述
 * @author: Fesine
 * @createTime:2017/10/25
 * @update:修改内容
 * @author: Fesine
 * @updateTime:2017/10/25
 */
@Service
public class ErrorListServiceImpl extends BaseServiceImpl<ErrorListPo> implements ErrorListService {

    @Override
    public int save(ErrorListPo po) {
        po.setPacteraNo(po.getPacteraNo().toUpperCase());
        po.setErrorWeek(SystemUtils.getWeekDay(po.getErrorDate()));
        return daoService.insert(po);
    }
}
